

package com.hazelcast.client.impl.protocol.exception;

import java.util.List;

public class ErrorHolder {

    private int errorCode;
    private String className;
    private String message;
    private List<StackTraceElement> stackTraceElements;

    public ErrorHolder(int errorCode, String className, String message, List<StackTraceElement> stackTraceElements) {
        this.errorCode = errorCode;
        this.className = className;
        this.message = message;
        this.stackTraceElements = stackTraceElements;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getClassName() {
        return className;
    }

    public String getMessage() {
        return message;
    }

    public List<StackTraceElement> getStackTraceElements() {
        return stackTraceElements;
    }
}
